﻿{{~ for using_item in usings ~}}
using {{ using_item }};
{{~ end ~}}


namespace {{ namespace }}
{
    /// <summary>
    /// {{ query_dto_class_summary }}
    /// </summary>
    public class {{ query_dto_class_name }} : QueryBase
    {
{{~ for field in query_fields ~}}
{{~ if field.data_type == "DateTime"~}}
         /// <summary>
         /// {{ field.description }}开始
         /// </summary>
         public {{ field.data_type }}? Begin{{ field.field_name }} { get; set; }
         /// <summary>
         /// {{ field.description }}结束
         /// </summary>
         public {{ field.data_type }}? End{{ field.field_name }} { get; set; }
{{~ else ~}}
        /// <summary>
        /// {{ field.description }}
        /// </summary>
        public {{ field.data_type }} {{ field.field_name }} { get; set; }
{{~ end ~}}
{{~ end ~}}
    }

    /// <summary>
    /// {{ dto_class_summary }}
    /// </summary>
    public class {{ dto_class_name }}
    {
{{~ for field in fields ~}}
        /// <summary>
        /// {{ field.description }}
        /// </summary>
        public {{ field.data_type }} {{ field.field_name }} { get; set; }
{{~ end ~}}
    }
}
